﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home/Layouts/Home.Master" AutoEventWireup="true"
    CodeBehind="Home.aspx.cs" Inherits="Thuoc24h.Home.Pages.Home" %>

<%@ Import Namespace="CSS" %>
<%@ Import Namespace="Thuoc24h.Common" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPLH" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPLH" runat="server">
    <div id="TopSliderWrapper">
        <ul id="TopSlider">
            <asp:Literal runat="server" ID="ltrSlide"></asp:Literal>
        </ul>
    </div>
    <div class="ProductBlock">
        <div class="ProductBlockTitle">
            Khuyến mại<a href="/tim-thuoc-theo-loai.aspx?type=khuyen-mai">Xem toàn bộ</a>
        </div>
        <div class="ProductBlockContent">
            <asp:Repeater runat="server" ID="rptProductDiscount">
                <ItemTemplate>
                    <div class="ProductItem">
                        <div class="ProductItemContent">
                            <h2 class="ProductItemTitle">
                                <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>"><%#Eval("Name") %></a></h2>
                           <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>"> <img src='<%# Eval("ThumbImage")%>' alt='<%#Eval("Name") %>' class="ProductItemAvatar" /></a>
                            <div class="ProductItemDescription">
                                <%#Eval("Description").GetLeft(60,true) %>
                            </div>
                            <div class="ProductItemInfo">
                                <table>
                                    <tr>                                       
                                        <td>
                                            <span class="ProductPrice"><%#Eval("PriceDiscount").FormatMoney() %></span>
                                        </td>
                                    </tr>
                                    <tr>                                       
                                        <td>
                                            <span class="ProductSourcePrice"><%#Eval("Price").FormatMoney("&nbsp;") %> </span>
                                        </td>
                                    </tr>
                                    <tr>                                       
                                        <td>
                                            <span class="ProductDiscount">- <%#Eval("DiscountPercent") %>%</span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="ProductItemView">
                                <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>">Xem</a>
                            </div>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>

        </div>
    </div>
    <div class="ProductBlock">
        <div class="ProductBlockTitle">
            Bán chạy <a href="/tim-thuoc-theo-loai.aspx?type=ban-chay">Xem toàn bộ</a>
        </div>
        <div class="ProductBlockContent">
            <asp:Repeater runat="server" ID="rptProductBanchay">
                <ItemTemplate>
                    <div class="ProductItem">
                        <div class="ProductItemContent">
                            <h2 class="ProductItemTitle">
                                <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>"><%#Eval("Name") %></a></h2>
                           <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>"> <img src='<%# Eval("ThumbImage")%>' alt='<%#Eval("Name") %>' class="ProductItemAvatar" /></a>
                            <div class="ProductItemDescription">
                                <%#Eval("Description").GetLeft(50,true) %>
                            </div>
                          <div class="ProductItemInfo">
                                <table>
                                    <tr>
                                       
                                        <td>
                                            <span class="ProductPrice"><%#Eval("PriceDiscount").FormatMoney() %></span>
                                        </td>
                                    </tr>
                                    <tr>
                                       
                                        <td>
                                            <span class="ProductSourcePrice"><%#Eval("Price").FormatMoney("&nbsp;") %> </span>
                                        </td>
                                    </tr>
                                    <tr>
                                     
                                        <td>
                                            <span class="ProductDiscount">- <%#Eval("DiscountPercent") %>%</span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="ProductItemView">
                                 <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>">Xem</a>
                            </div>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="ProductBlock">
        <div class="ProductBlockTitle">
            Thuốc mới<a href="/tim-thuoc-theo-loai.aspx?type=thuoc-moi">Xem toàn bộ</a>
        </div>
        <div class="ProductBlockContent">
            <asp:Repeater runat="server" ID="rptProductNew">
                <ItemTemplate>
                    <div class="ProductItem">
                        <div class="ProductItemContent">
                            <h2 class="ProductItemTitle">
                                <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>"><%#Eval("Name") %></a></h2>
                          <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>"> <img src='<%# Eval("ThumbImage")%>' alt='<%#Eval("Name") %>' class="ProductItemAvatar" /></a>
                            <div class="ProductItemDescription">
                                <%#Eval("Description").GetLeft(50,true) %>
                            </div>
                            <div class="ProductItemInfo">
                                  <table>
                                    <tr>
                                     
                                        <td>
                                            <span class="ProductPrice"><%#Eval("PriceDiscount").FormatMoney() %></span>
                                        </td>
                                    </tr>
                                    <tr>
                                       
                                        <td>
                                            <span class="ProductSourcePrice"><%#Eval("Price").FormatMoney("&nbsp;") %></span>
                                        </td>
                                    </tr>
                                    <tr>
                                       
                                        <td>
                                            <span class="ProductDiscount">- <%#Eval("DiscountPercent") %>%</span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="ProductItemView">
                                <a href="/san-pham/<%#Thuoc24h.Common.Utils.BuildUrl(Eval("Name"),Eval("Id")) %>">Xem</a>
                            </div>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</asp:Content>
